package cn.gok.springboot.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author HP
 * @Date 9:33 2022/7/14
 * @Version 1.0
 **/
@RestController

public class HelloController {
    @Value("${my.name}")
    private  String name;
    @Value("${my.password}")
    private String password;
    @RequestMapping("/hello")
    public String showHello(){
        return "hello world"+name+password;
    }
}
